home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-08-22 | 5.6 KB | 343 lines | [TEXT/CWIE] |
- /* Template PPob Script.r */
- /* This is the engine of the PPob rez file. It needs no editing. */
-
- #include "PowerPlant.r"
-
- #define FIELD_CAPTION \
- ObjectData { GACaption { \
- 10000 + ID, \
- {88, 14}, \
- visible, enabled, \
- bound, bound, unbound, unbound, \
- X, Y, \
- 0, defaultSuperView, \
- TEXT, CAPTION_STYLE \
- } }
-
- #define FIELD_EDITFIELD \
- ObjectData { GAFocusBorder { \
- 10100 + ID, \
- {166, 24}, \
- visible, enabled, \
- bound, bound, unbound, unbound, \
- X, Y, \
- 0, defaultSuperView, \
- 0, 0, 0, 0, 1, 1, \
- noReconcileOverhang, \
- 100000 + id, 100000 + id, \
- hasPaintFace, noFrameInset, noNotchInset, noNotchFace, \
- 15, hasCanFocus, noCurrentFocus \
- } }, \
- BeginSubs {}, \
- ObjectData { GAEditField { \
- 100000 + id, \
- {158, 16}, \
- visible, enabled, \
- bound, bound, unbound, unbound, \
- 4, 4, 0, defaultSuperView, \
- TEXT, \
- 2001, \
- MAX, hasBox, noWordWrap, hasAutoScroll, \
- noTextBuffering, noOutlineHilite, \
- noInlineInput, noTextServices, FILTER \
- } }, \
- EndSubs {}
-
- #define SEPARATOR \
- ObjectData { GASeparator { \
- 10199, \
- {260, 4}, \
- visible, enabled, \
- bound, bound, unbound, unbound, \
- X, Y, \
- 0, defaultSuperView \
- } }
-
- #define FIELD_COUNT (ENTRY_COUNT + RESULT_COUNT)
-
-
- /* Generate the actual PPob */
-
- resource 'PPob' (1000) {
- {
- ObjectData {
- AbstractView {
- 1000,
- {280, 264},
- visible, enabled,
- bound, bound, unbound, unbound,
- 0, 0,
- 0, defaultSuperView,
- 280, 264,
- 0, 0,
- 16, 16,
- hasReconcileOverhang
- }
- },
-
- BeginSubs {},
- ObjectData { GACaption {
- 10000,
- {260, 38},
- visible, enabled,
- bound, bound, unbound, unbound,
- 10, 10,
- 0, defaultSuperView,
- TOP_CAPTION, 2004
- } },
-
- // BEGIN tab group --------
- ObjectData { TabGroup {} },
- BeginSubs {},
-
- #define CAPTION_STYLE 2002
- #define SEPARATOR_EXTRA 0
-
-
- /* Field 1 */
-
- #if ENTRY_COUNT < 1
- #define CAPTION_STYLE 2001
- #define SEPARATOR_EXTRA 18
- #define FIELD_1_MAX_CHARS 0
- #define FIELD_1_FILTER noFilter
- #endif
-
- #if FIELD_COUNT > 0
-
- #define ID 1
- #define X 10
- #define Y (64 + SEPARATOR_EXTRA)
- #define TEXT FIELD_1_TITLE
-
- FIELD_CAPTION,
-
- #define X 104
- #define Y (59 + SEPARATOR_EXTRA)
- #define TEXT FIELD_1_DEFAULT
- #define MAX FIELD_1_MAX_CHARS
- #define FILTER FIELD_1_FILTER
-
- FIELD_EDITFIELD,
-
- #endif
-
-
-
- /* Field 2 */
-
- #if ENTRY_COUNT < 2
- #define CAPTION_STYLE 2001
- #define SEPARATOR_EXTRA 18
- #define FIELD_2_MAX_CHARS 0
- #define FIELD_2_FILTER noFilter
- #endif
-
- #if FIELD_COUNT > 1
-
- #define ID 2
- #define X 10
- #define Y (93 + SEPARATOR_EXTRA)
- #define TEXT FIELD_2_TITLE
-
- FIELD_CAPTION,
-
- #define X 104
- #define Y (88 + SEPARATOR_EXTRA)
- #define TEXT FIELD_2_DEFAULT
- #define MAX FIELD_2_MAX_CHARS
- #define FILTER FIELD_2_FILTER
-
- FIELD_EDITFIELD,
-
- #endif
-
-
-
- /* Field 3 */
-
- #if ENTRY_COUNT < 3
- #define CAPTION_STYLE 2001
- #define SEPARATOR_EXTRA 18
- #define FIELD_3_MAX_CHARS 0
- #define FIELD_3_FILTER noFilter
- #endif
-
- #if FIELD_COUNT > 2
-
- #define ID 3
- #define X 10
- #define Y (122 + SEPARATOR_EXTRA)
- #define TEXT FIELD_3_TITLE
-
- FIELD_CAPTION,
-
- #define X 104
- #define Y (117 + SEPARATOR_EXTRA)
- #define TEXT FIELD_3_DEFAULT
- #define MAX FIELD_3_MAX_CHARS
- #define FILTER FIELD_3_FILTER
-
- FIELD_EDITFIELD,
-
- #endif
-
-
-
- /* Field 4 */
-
- #if ENTRY_COUNT < 4
-
- #define CAPTION_STYLE 2001
- #define SEPARATOR_EXTRA 18
- #define FIELD_4_MAX_CHARS 0
- #define FIELD_4_FILTER noFilter
- #endif
-
- #if FIELD_COUNT > 3
-
- #define ID 4
- #define X 10
- #define Y (151 + SEPARATOR_EXTRA)
- #define TEXT FIELD_4_TITLE
-
- FIELD_CAPTION,
-
- #define X 104
- #define Y (146 + SEPARATOR_EXTRA)
- #define TEXT FIELD_4_DEFAULT
- #define MAX FIELD_4_MAX_CHARS
- #define FILTER FIELD_4_FILTER
-
- FIELD_EDITFIELD,
-
- #endif
-
-
-
- /* Field 5 */
-
- #if ENTRY_COUNT < 5
-
- #define CAPTION_STYLE 2001
- #define SEPARATOR_EXTRA 18
- #define FIELD_5_MAX_CHARS 0
- #define FIELD_5_FILTER noFilter
- #endif
-
- #if FIELD_COUNT > 4
-
- #define ID 5
- #define X 10
- #define Y (180 + SEPARATOR_EXTRA)
- #define TEXT FIELD_5_TITLE
-
- FIELD_CAPTION,
-
- #define X 104
- #define Y (175 + SEPARATOR_EXTRA)
- #define TEXT FIELD_5_DEFAULT
- #define MAX FIELD_5_MAX_CHARS
- #define FILTER FIELD_5_FILTER
-
- FIELD_EDITFIELD,
-
- #endif
-
- // END tab group --------
- EndSubs {},
-
-
- /* Separator */
-
- #define X 10
- #define Y (66 + 29 * ENTRY_COUNT)
-
- SEPARATOR,
-
-
- ObjectData { GAPushButton {
- 300000,
- {112, 18},
- visible, enabled,
- bound, bound, unbound, unbound,
- 84, 236,
- 0, defaultSuperView,
- 300000,
- 2002, "About this Plugin",
- 0
- } },
- EndSubs {}
- }
- };
-
-
- /* Generate the rest */
-
- resource 'RidL' (1000) {
- { /* array ResourceIDList: 1 elements */
- /* [1] */
- 300000
- }
- };
-
- resource 'Txtr' (2000, "System Font", purgeable) {
- defaultSize,
- 0,
- flushDefault,
- srcOr,
- 0,
- 0,
- 0,
- 0,
- ""
- };
-
- resource 'Txtr' (2001, "Geneva 9", purgeable) {
- 9,
- 0,
- flushDefault,
- srcOr,
- 0,
- 0,
- 0,
- useName,
- "Geneva"
- };
-
- resource 'Txtr' (2002, "Geneva 9 bold", purgeable) {
- 9,
- 1,
- flushDefault,
- srcOr,
- 0,
- 0,
- 0,
- useName,
- "Geneva"
- };
-
- resource 'Txtr' (2003, "Geneva 9 centered", purgeable) {
- 9,
- 0,
- center,
- srcOr,
- 0,
- 0,
- 0,
- useName,
- "Geneva"
- };
-
- resource 'Txtr' (2004, "Geneva 9 bold centered", purgeable) {
- 9,
- 1,
- center,
- srcOr,
- 0,
- 0,
- 0,
- useName,
- "Geneva"
- };
-